<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <base target="middle" />
        <title></title>
        <!--
        <!link rel=stylesheet type="text/css" href="mystyle.css">
        -->
    </head>
    <body >
        
        <div>
        <i>
            
        <?php
            $con=mysql_connect("localhost","root");
            if(!$con)
            {echo "COULD NOT CONNECT";
             mysql_close($con);
            }
            mysql_select_db("shoppingcart",$con);
            $result =mysql_query("SELECT * FROM categories",$con);
            //echo "<table border='2'>
            //<tr>
            //<th>CATEGORIES</th>
            //</tr>";
            while($row=mysql_fetch_array($result))
                {
                    
                    echo " <div style=\"color:#00FF00\">";
                    echo " <a href=\"index.php?foo=".$row["name"]."\">"."<img src=\"images/".$row["name"].".jpg"."\" width=\"65\" height=\"65\"></a>";
                    echo "</br>";
                    echo " <a href=\"index.php?foo=".$row["name"]."\"> "." <strong><FONT size=\"4\" face=\"Calibri\" color=\"violet\"><B><abbr title=\" ".$row["name"]."\"> ".$row["name"]." </abbr></B></FONT></strong></a>";
                    echo "</br>";
                    echo "</br>";
                    echo "</div>";
                    echo "</br>";

                    //echo "<tr>";
                    //echo "<td>"." <a href=\"index.php?foo=".$row["name"]."\">".$row["name"]."</a>"."</td>";
                    //echo "</tr>";
                    //echo "</br>";
                }
            //echo "</table>";
            mysql_close($con);
        ?>
        </i>
        
        </div>
        
    </body>
</html>
